<script setup>
import axios from "axios"
import { onMounted, ref } from "vue"
let tat = ref("")
onMounted(() => {
    axios.get("api/fk").then(res => {
        tat.value = res.data.data
    })
})
</script>
<template>
    <div class="box">
        <div class="app">校园易购</div>
        <div class="dingdan">我的订单</div>
        <div class="aa">
            <RouterLink to="a">待付款</RouterLink>
            <RouterLink to="b">待配送</RouterLink>
            <RouterLink to="c">待接收</RouterLink>
            <RouterLink to="d">已完成</RouterLink>
        </div>
        <RouterView />
        <el-col class="yc">
      <RouterLink to="/" class="wz">首页</RouterLink>
      <RouterLink to="/Gouwuche" class="wz">购物车</RouterLink>
      <RouterLink to="/Home" class="wz">我的</RouterLink>
    </el-col>
</div>
</template>
<style scoped>
.box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 375px;
    margin: 0 auto;
    border: 1px solid #ccc;
    background-color: #f2efef;
}

.app {
    height: 40px;
    font-size: 25px;
    font-weight: bold;
    text-align: center;
    line-height: 20px;
    padding-top: 5px;
    background-color: white;
}

.dingdan {
    width: 100%;
    padding: 10px;
    font-weight: bold;
    font-size: 20px;
    background-color: white;
}

.aa {
    display: flex;
    gap: 30px;
    padding: 10px;
    background-color: white;
}
.lsl {
    display: flex;
    gap: 10px;
    background-color: white;
}
.yc {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 20px;
  background-color: white;
}
.wz {
  color: black;
  text-align: center;
  text-decoration: none;
}</style>
